//字酷云

 $(function ()
            {
			 var   fanlimall = {
	               "shang"    : { name:"商",cell: { 
				                                    "zhbh":{name :"综合百货" ,id:6},
							                        "fzfs":{name:"服装服饰",id:4},
													"sjsm":{name:"手机数码",id:2},
													"tsyx":{name:"图书音像",id:1},
													"dnbjb":{name:"电脑笔记本",id:3},
													"hzmr":{name:"化妆美容",id:5},
													"hwxx":{name:"户外休闲",id:7},
													"jydq":{name:"家用电器",id:8},
													"jjsh":{name:"居家生活",id:9},
													"myyp":{name:"母婴用品",id:10},
													"bgyp":{name:"办公用品",id:11},
													"wjlp":{name:"玩具礼品",id:12},
													"skrj":{name:"数卡软件",id:13},
													"ypbj":{name:"药品保健",id:14},
													"zbyj":{name:"钟表眼镜",id:15},
													"yydp":{name:"旅游订票",id:16},
													"qcyp":{name:"汽车用品",id:17},
													"spps":{name:"饰品配饰",id:18},
													"cwyp":{name:"宠物用品",id:20},
													"xbpj":{name:"箱包皮具",id:21},
													"spyl":{name:"食品饮料",id:22}
			
																			   }},				                            
                   "tao"   : { name:"淘"},
	               "pai" : { name:"拍"}
	  
               };
var opts = {data: fanlimall,
			select: '#fanlimall',
	        head: "选择商城"			
                    };

var linkageSelfanlimall = new LinkageSel(opts);
linkageSelfanlimall.onChange(function() {
		var id=linkageSelfanlimall.getSelectedData('id');  
		if( id!= undefined)
		{   
			$.ajax({
			type:"POST",
			url:url+"/get59miaoshop",
		    data:{mall_typeid:id,mallbm:linkageSelfanlimall.getSelectedValue()},
			dataType:"json",
			error:function (XMLHttpRequest, textStatus, errorThrown) {alert('请求错误...'+errorThrown);},
			success:function(data){ 
				  alert("成功");
			        }
		              });
		}
			
						});
						
		$("#qgw").click(function(){
		alert('qgw');
		$.ajax({
			type:"POST",
			url:url+"/get59miaoallshop",
		    data:{},
			dataType:"json",
			error:function (XMLHttpRequest, textStatus, errorThrown) {alert('请求错误...'+errorThrown);},
			success:function(data){ 
				  alert("成功");
			        }
		              });
});		
						


				    });